package com.example.springalibabacloudclient.feign;

import com.alibaba.fastjson.JSONObject;
import com.example.springalibabacloudclient.config.FeignConfig;
import com.example.springalibabacloudclient.feign.impl.TestFeignImpl;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author X.I.O
 * @title: TestFeign
 * @projectName spring-cloud-1
 * @description: TODO
 * @date 2021/11/7 13:27
 *
 * 配置访问服务名
 */
@FeignClient(value = "cloud-provider-noauth",fallback = TestFeignImpl.class,configuration = FeignConfig.class)
public interface TestFeign {

    @RequestMapping(value = "/pro/api",method = RequestMethod.GET)
    public String getJSONObject();
}
